<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">&lt;?php
<span id='global-property-'>/**
</span> * Cube PHP Framework
 * 
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the &quot;License&quot;); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 * 
 * @author Dillen / Steffen
 */

namespace Library\Mvc;

<span id='Library-Mvc-Event'>/**
</span> * Event base
 * 
 * @class Library.Mvc.Event
 * @abstract
 */
abstract class Event
{
<span id='Library-Mvc-Event-property-String'>	/**
</span>	 * The current state of the event
	 * 
	 * @property String state
	 * @var string
	 */
	public $state;
	
<span id='Library-Mvc-Event-method-changeState'>	 /**
</span>	  * Method called when the event is changed, also use this 
	  * to change the event.
	  *
	  * @method changeState
	  * @param String state
	  * 
	  * @final
	  */
	final public function changeState($state)
	{
		$this-&gt;state = $state;
		
		$this-&gt;stateChanged($state);
	}
	
<span id='Library-Mvc-Event-method-stateChanged'>	/**
</span>	 * This event-method is called when the state is changed.
	 * 
	 * @param Constant state
	 * @method stateChanged
	 * @protected
	 */
	protected function stateChanged($state)
	{
		
	}
}
</pre>
</body>
</html>
